#define _CRT_SECURE_NO_WARNINGS
#include "BinaryTree.h"
int main()
{
	char arr[18] = "ABD##E#H##CF##G##";
	int p = 0;
	BTNode * ret = BinaryTreeCreate(arr, 18, &p);
	BinaryTreePrevOrder(ret);
	printf("\n");
	BinaryTreeInOrder(ret);
	printf("\n");
	BinaryTreePostOrder(ret);
	printf("\n");
	printf(" BinaryTreeLeafSize=%d\n", BinaryTreeLeafSize(ret));
	printf(" BinaryTreeLevelKSize=%d\n", BinaryTreeLevelKSize(ret,4));
	printf(" BinaryTreeSize=%d\n", BinaryTreeSize(ret));
	printf(" BinaryTreeComplete=%d\n", BinaryTreeComplete(ret));

	BinaryTreeDestory(&ret);
	return 0;
}